//
//  LFProfileView.m
//  College
//
//  Created by LF on 2020/4/3.
//  Copyright © 2020 MuXi. All rights reserved.
//

#import "LFProfileView.h"


@interface LFProfileView()
@property (nonatomic, strong) LFProfileViewModel *viewModel; /**< vm */
@property (nonatomic, strong) LFNavigationBar *nav; /**< na */
@end

@implementation LFProfileView

- (instancetype)initWithViewModel:(id)viewModel {
    self.viewModel = viewModel;
    return [super initWithViewModel:viewModel];
}

- (void)updateConstraints {
    [self.nav mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.equalTo(self);
        make.height.mas_equalTo(navHeight);
    }];
    
    [super updateConstraints];
}

- (void)lf_bindViewModel {
    
}

- (void)lf_setupViews {
    [self addSubview:self.nav];
    [self updateConstraintsIfNeeded];
    [self setNeedsUpdateConstraints];
}

- (LFNavigationBar *)nav {
    if (!_nav) {
        _nav = [[LFNavigationBar alloc] initWithTitle:@"我的"];
    }
    return _nav;
}

@end
